package com.example.Wisdompark.service;

import com.example.Wisdompark.pojo.Transport_Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TransportOrderService {
    // 查询所有入库订单
    List<Transport_Order> queryAllOrder();

    // 插入一个订单
    int insertAOrder(Transport_Order transport_order);

    // 更新运输的订单
    int updateOutOrder(String carNum,
                       String order_num);

    // 清空运货订单
    int clearOutOrder();

    // 更新位置
    int updateLocation(@Param("carNum") String carNum,
                       @Param("lng") Float lng,
                       @Param("lat")Float lat);
    // 根据车辆编号查询车辆
    Transport_Order queryOrder(String carNum);


    // 查询所有order_num字段不为空的Transport_Order
    List<Transport_Order> queryOrderByOrderNum();
}
